#!/bin/sh

# sqlite3 db.sqlite3 "select name from sqlite_master where type='table' order by name"

sqlite3 db.sqlite3 "DROP TABLE auth_group";
sqlite3 db.sqlite3 "DROP TABLE auth_group_permissions";
sqlite3 db.sqlite3 "DROP TABLE auth_permission";
sqlite3 db.sqlite3 "DROP TABLE auth_user";
sqlite3 db.sqlite3 "DROP TABLE auth_user_groups";
sqlite3 db.sqlite3 "DROP TABLE auth_user_user_permissions";
sqlite3 db.sqlite3 "DROP TABLE django_admin_log";
sqlite3 db.sqlite3 "DROP TABLE django_content_type";
sqlite3 db.sqlite3 "DROP TABLE django_migrations";
sqlite3 db.sqlite3 "DROP TABLE django_session";

rm -rf ./index/migrations/

sqlite3 db.sqlite3 "DROP TABLE index_author";
sqlite3 db.sqlite3 "DROP TABLE index_book";
sqlite3 db.sqlite3 "DROP TABLE index_userinfo";





# python3 manage.py createsuperuser --username=admin --email=admin@163.com